{% extends "base_weblog" %}

{% block content %}

{% load comments.comments %}

<h1>Derniers messages du blog</h1>

{% for object in latest %}
    {% get_free_comment_count for blog.entrees object.id as comment_count %}
    <h2><a href="{{ object.get_absolute_url }}">{{ object.titre }}</a></h2>
    {{ object.corps }}
    <p class="date small">Posté par <strong>{{ object.auteur }}</strong> le {{ object.date_pub|date:"j F Y" }} | <a href="{{ object.get_absolute_url }}#comments">{{ comment_count }} commentaire{{ comment_count|pluralize }}</a></p>
{% endfor %}

{% endblock %}
